import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/pages/HelloWorld'
const HelloWorld = r => require.ensure([], () => r(require('@/pages/HelloWorld')), 'HelloWorld')
const Home = r => require.ensure([], () => r(require('@/pages/Home')), 'Home')
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/hello',
      name: 'Hello',
      component: HelloWorld
    }
  ]
})
